<?php

namespace app\mini\enum;


class TypeEnum extends Base
{

    public const MINI = 'mini'; //是
    public const H5 = 'h5'; //否

    public static function toZhArray(): array
    {
        return [
            self::MINI => '小程序',
            self::H5 => 'h5',
        ];
    }

    public function isMini()
    {
        return $this->getValue() == self::MINI;
    }

    public function isH5()
    {
        return $this->getValue() == self::H5;
    }

}